import { App } from 'vue'
import ui from '../package'
const version: any = ui.version

// 导入组件
import components from './components/index'

// 导入样式
import './components/index.scss'

// 全量安装方法
const install = (app: App) => {
  components.forEach((component) => {
    app.use(component)
  })
}

// 导出全量安装对象
export default {
  install,
  version
}

// 导出所有组件（用于按需加载）
export * from './components'
